import java.util.Scanner;

public class shop {
    public static void main(String[] args) {
        String a[] = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J"};
        Scanner reader = new Scanner(System.in);
        double b[] = new double[10];
        for (int i=0; i<a.length;i++) {
            System.out.print("请输入" + a[i] + "的价格：");
            b[i] = reader.nextDouble();
        }
        double sum = 0;
        for (int i=0; i<a.length;i++) {
            System.out.println(a[i] + "的价格：" + b[i] + "元");
            sum = sum + b[i];
        }
        System.out.println("总金额：" + sum + "元");
    }
}
